package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Programme implements Serializable {
    private String prno;

    private String eno;

    private String ernu;

    private String prtitle;

    private String prcontent;

    private Date prdate;

    private String prprice;

    private String prbuynum;

    private String prlikes;

    private static final long serialVersionUID = 1L;

    public String getPrno() {
        return prno;
    }

    public void setPrno(String prno) {
        this.prno = prno;
    }

    public String getEno() {
        return eno;
    }

    public void setEno(String eno) {
        this.eno = eno;
    }

    public String getErnu() {
        return ernu;
    }

    public void setErnu(String ernu) {
        this.ernu = ernu;
    }

    public String getPrtitle() {
        return prtitle;
    }

    public void setPrtitle(String prtitle) {
        this.prtitle = prtitle;
    }

    public String getPrcontent() {
        return prcontent;
    }

    public void setPrcontent(String prcontent) {
        this.prcontent = prcontent;
    }

    public Date getPrdate() {
        return prdate;
    }

    public void setPrdate(Date prdate) {
        this.prdate = prdate;
    }

    public String getPrprice() {
        return prprice;
    }

    public void setPrprice(String prprice) {
        this.prprice = prprice;
    }

    public String getPrbuynum() {
        return prbuynum;
    }

    public void setPrbuynum(String prbuynum) {
        this.prbuynum = prbuynum;
    }

    public String getPrlikes() {
        return prlikes;
    }

    public void setPrlikes(String prlikes) {
        this.prlikes = prlikes;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Programme other = (Programme) that;
        return (this.getPrno() == null ? other.getPrno() == null : this.getPrno().equals(other.getPrno()))
            && (this.getEno() == null ? other.getEno() == null : this.getEno().equals(other.getEno()))
            && (this.getErnu() == null ? other.getErnu() == null : this.getErnu().equals(other.getErnu()))
            && (this.getPrtitle() == null ? other.getPrtitle() == null : this.getPrtitle().equals(other.getPrtitle()))
            && (this.getPrcontent() == null ? other.getPrcontent() == null : this.getPrcontent().equals(other.getPrcontent()))
            && (this.getPrdate() == null ? other.getPrdate() == null : this.getPrdate().equals(other.getPrdate()))
            && (this.getPrprice() == null ? other.getPrprice() == null : this.getPrprice().equals(other.getPrprice()))
            && (this.getPrbuynum() == null ? other.getPrbuynum() == null : this.getPrbuynum().equals(other.getPrbuynum()))
            && (this.getPrlikes() == null ? other.getPrlikes() == null : this.getPrlikes().equals(other.getPrlikes()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPrno() == null) ? 0 : getPrno().hashCode());
        result = prime * result + ((getEno() == null) ? 0 : getEno().hashCode());
        result = prime * result + ((getErnu() == null) ? 0 : getErnu().hashCode());
        result = prime * result + ((getPrtitle() == null) ? 0 : getPrtitle().hashCode());
        result = prime * result + ((getPrcontent() == null) ? 0 : getPrcontent().hashCode());
        result = prime * result + ((getPrdate() == null) ? 0 : getPrdate().hashCode());
        result = prime * result + ((getPrprice() == null) ? 0 : getPrprice().hashCode());
        result = prime * result + ((getPrbuynum() == null) ? 0 : getPrbuynum().hashCode());
        result = prime * result + ((getPrlikes() == null) ? 0 : getPrlikes().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", prno=").append(prno);
        sb.append(", eno=").append(eno);
        sb.append(", ernu=").append(ernu);
        sb.append(", prtitle=").append(prtitle);
        sb.append(", prcontent=").append(prcontent);
        sb.append(", prdate=").append(prdate);
        sb.append(", prprice=").append(prprice);
        sb.append(", prbuynum=").append(prbuynum);
        sb.append(", prlikes=").append(prlikes);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}